<template>
	<div class="wdxq2" :style="{'min-height':Height-73+'px'}">
		<div class="wdxq_title flex align_center">
			<i class="el-icon-arrow-left" style="float: left;margin-left: 4%;font-size: 2.4rem;" @click="fh"></i>
			<span class="flex1">认证中心</span>
			<i class="el-icon-arrow-left" style="float: right;margin-right: 4%;font-size: 2.4rem;opacity: 0;"></i>
		</div>
		<img style="width: 100%;display: block;" src="../../../../static/img/images/rzzx1.jpg" />
		<div @click="$router.push({path: data.router})" class="wdxq_div3 clear2" v-for="(data,key) in div3list" :class="data.botter?'wdxq_div3bottom':''">
			<div class="wdxq_div3left flex align_center">
				<img :src="data.img">{{data.name}} 
			</div>
			<div class="wdxq_div3right">
				{{data.index==0?'未认证':'已认证'}}
				<i class="el-icon-arrow-right"></i>
			</div>
		</div>
		
		

	</div>
</template>

<script>
	export default {
		data: function() {
			return {
				Height:0,
				tabI:0,
				div3list:[{
					'name':'微信认证 ',
					'botter':false,
					'index':1,
					'img':'../../../../static/img/images/rzzx2.jpg',
					'router':'/wode/rzzx'
					
				},{
					'name':'手机认证',
					'botter':false,
					'index':0,
					'img':'../../../../static/img/images/rzzx3.jpg',
					'router':'/wode/sjrz'
				},{
					'name':'实名认证 ',
					'botter':false,
					'index':0,
					'img':'../../../../static/img/images/rzzx4.jpg',
					'router':'/wode/sfrz'
				}],
				list:{},

			}
		},
		mounted() {
			this.Height=document.body.offsetHeight;
			this.getIndexList();
		},
		methods: {
			fh(){
        		window.history.go(-1);
        	},
        	getIndexList(){
        		this.$http.post(this.defines.getUserAuthenticat, {
        			uid:window.uid
        		}, {
						emulateJSON: true
					})
					.then(
						(data) => {
							if(data.data.data.is_phone==1){
								this.$set(this.div3list[1],'index',1)
								this.$set(this.div3list[1],'router','/wode/rzzx')
							}
							if(data.data.data.is_member_code==1){
								this.$set(this.div3list[2],'index',1)
								this.$set(this.div3list[2],'router','/wode/rzzx')
							}
						},
						(error) => {
							console.log(error);
						}
					);
        	},
		}
	}
</script>
